<?php

/** @var \Illuminate\Database\Eloquent\Factory $factory */

use App\Models\Article;
use Faker\Generator as Faker;

$factory->define(Article::class, function (Faker $faker) {
    return [
        //文章表的数据填仓
        "title"=>$faker->text(100),
        "desn"=>$faker->text(100),
        "author"=>$faker->name,
        "pic"=>"/uploads/article/".rand(1,6).".jpg",
        "body"=>$faker->text
    ];
});
